import Vue from 'vue'
import Router from 'vue-router'
import index from '../view/index.vue'
import pay from '../view/pay.vue'
import sort from '../view/sort.vue'
import member from '../view/member.vue'
import shoppingCar from '../view/shoppingCar.vue'
import search from '../view/search.vue'
import myaddress from '../view/myaddress.vue'
import addaddress from '../view/addaddress.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/pay',
      name: 'pay',
      component: pay
    },
    {
      path: '/sort',
      name: 'sort',
      component: sort
    },
    {
      path: '/shoppingCar',
      name: 'shoppingCar',
      component: shoppingCar
    },
    {
      path: '/myaddress',
      name: 'myaddress',
      component: myaddress
    },
    {
      path: '/addaddress',
      name: 'addaddress',
      component: addaddress
    },
    {
      path: '/member',
      name: 'member',
      component: member
    },
    {
      path: '/search',
      name: 'search',
      component: search
    }
  ]
})
